package com.stox.scanner.model;

public abstract class AbstractScreen<T> implements Screen<T> {

	protected T configuration;
	
	@Override
	public T getConfiguration() {
		return configuration;
	}
	
	public void setConfiguration(T configuration) {
		this.configuration = configuration;
	}
	
	@Override
	public int compareTo(Screen<?> o) {
		return getName().compareToIgnoreCase(o.getName());
	}
	
	@Override
	public String toString() {
		return getName();
	}
}
